package com.czxy.changgou3.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangtong.
 */
@Table(name="tb_impression")
@Data
public class Impression {
    @Id
    private Integer id;
    private String title;       //标题
    private Integer count;      //统计数
    @Column(name="spu_id")
    private Integer spuId;
    @Column(name="sku_id")
    private Integer skuId;
}

/*

CREATE TABLE `tb_impression` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) DEFAULT NULL COMMENT '印象',
  `count` int(11) DEFAULT NULL,
  `spu_id` int(11) DEFAULT NULL,
  `sku_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4
 */
